function apostropheG=computeApostropheG(theta, Q)
apostropheG = 2 * theta' * Q;
end